ISlave.AoeReadWriteCommand 方法
透過 AoE (ADS over EtherCAT) 同時讀寫資料。
命名空間:IntervalZero.KINGSTAR.Base.Class組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
語法
IKsCommand<byte[]> AoeReadWriteCommand(
int port,
int indexGroup,
int indexOffset,
int readLength,
byte[] writeValue
)
Function AoeReadWriteCommand(
port As Integer,
indexGroup As Integer,
indexOffset As Integer,
readLength As Integer,
writeValue As Byte()
) As IKsCommand(Of Byte())
參數
port
型別:int
EtherCAT 從站埠。
indexGroup
型別:int
欲讀寫的物件索引群組。
indexOffset
型別:int
群組中物件的偏移量。
readLength
型別:int
欲讀取的值其長度(單位:位元組)。
writeValue
型別:byte[]
緩衝區的指標,緩衝區包含欲寫入的值。
回傳值
型別:IKsCommand<byte[]>
回傳方法的狀態及一個位元組陣列。
可用的 EtherCAT 狀態
ecatPreOP, ecatSafeOP, ecatOP
參見